package com.xr.miniprogram.mapper;

import com.xr.miniprogram.domain.MiniProgramComment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author da
 * @since 2023-09-12
 */
@Mapper
public interface MiniProgramCommentMapper extends BaseMapper<MiniProgramComment> {

    /**
     * 根据serviceId 、 评论类别查询评论列表
     * @param serviceId
     * @param topic
     * @return
     */
    List<MiniProgramComment> selectByServiceIdAndTopic(@Param("serviceId") Long serviceId, @Param("topic") Long topic);

}
